from flask import Flask,request

app = Flask(__name__)


@app.route('/')
def hello_world():
    msg =  '<h1 style="color: blue"> Hello World! Jenkins 演示</h1> ' \
           '<br> <h1 style="color: blue"> 从 Gitee 拉取来的项目文件</h1> '\
           '<br> <h1 style="color: blue"> Flask 版本升级 V2.0</h1> '

    return msg

@app.route("/get")
def get():
    # 提取url参数
    arg = request.args

    name = request.args["name"]
    return f"请求参数   :  {arg} \n <br> name:{name}"


if __name__ == '__main__':
    app.run()
